 /**
 * ��Ŀ������߽���ƽ̨
 * ����fb.ice.sample.client
 * �ļ���SampleClient.java
 * ���ڣ�2014-1-7-����11:49:09
 * ��    Ȩ:  Huahai Technologies Co., Ltd. Copyright @2014,  All rights reserved  
 * ��    ��:  <����> 
 * �����ˣ� jasonsnow 
 * Version   �޸���          �޸�ʱ��              ����                          MQC��
 * -------   -----    ---------  -----------    ------
 *   1.0     xxxxxx    2014-1-7   Description      M
 * 
 */
package fb.ice.sample.client;

import com.sgfm.media.model.ChannelModel;
import com.sgfm.media.model.cooperateChannelServiceIcePrx;
import com.sgfm.media.model.cooperateChannelServiceIcePrxHelper;

/** 
 * 类名称：SampleClient
 * 类描述： 
 * @author  jasonsnow
 * 修改人：
 * @version  [Ver 1.0]
 * @since 2014-1-7 上午11:49:09
 */
public class SampleClient {
	/** <一句话功能简述> 
	 * <pre>
	 * <功能详细描述>  
	 * </pre>
	 * @author  jasonsnow  
	 * @param args 
	 * void
	 * @since  2014-1-7 上午11:49:09 
	 */
	public static void main(String[] args) {
		int status = 0;
		Ice.Communicator ic= null;
		try{
			ic = Ice.Util.initialize(args);
			Ice.ObjectPrx base = ic.stringToProxy("testChannel:tcp -h 172.17.109.22 -p 10000");
			cooperateChannelServiceIcePrx prx = cooperateChannelServiceIcePrxHelper.checkedCast(base);
			ChannelModel channel = new ChannelModel();
			channel.id= 112;
			channel.name="ffff";
			System.out.println(prx.add(channel));
		}catch(Exception e){
			e.printStackTrace();
			status = 1;
		}finally{
			if(ic != null)ic.destroy();
		}
		System.exit(status);

	}

}
